#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include "leddriver.h"

int main(int argc, char const *argv[])
{
    int fd = -1;
    int i = 0;
    fd = open("/dev/fsled0", O_RDWR);
    while(1)
    {
        for(i = 2; i<=5; i++) ioctl(fd, LED_IOCTL_ON, i);
        sleep(1);
        for(i = 2; i<=5; i++) ioctl(fd, LED_IOCTL_OFF, i);
        sleep(1);
    }
    close(fd);
    return 0;
}

